package com.bwie.service.impl;

import com.bwie.common.domain.Role;
import com.bwie.common.domain.User;
import com.bwie.mapper.SysUserMapper;
import com.bwie.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @className: SysUserServiceImpl
 * @Description: TODO
 * @version: v1.８.0
 * @author: 汪菲阳
 * @date: 2025/8/24 11:42
 */
@Service
public class SysUserServiceImpl implements SysUserService {
    @Autowired
    private SysUserMapper sysUserMapper;

    @Override
    public User login(User user) {
        return sysUserMapper.login(user);
    }

    @Override
    public List<Role> getRoleList(Integer userId) {
        return sysUserMapper.getRoleList(userId);
    }
}
